package com.xd.core.company.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 合同表--公司之间签署
 * </p>
 *
 * @author ZX
 * @since 2025-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CompanyContract对象", description="合同表--公司之间签署")
public class CompanyContract implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "合同id")
    @TableId(value = "contract_id", type = IdType.AUTO)
    private Integer contractId;

    @ApiModelProperty(value = "公司Id")
    private Integer companyId;

    @ApiModelProperty(value = "合同状态(1--待签署,2--已签署,3-过期，4.拒签，5-失败)")
    private String status;

    @ApiModelProperty(value = "合同签署状态(1--待签署,2--已签署,3-过期，4.拒签，5-失败)")
    @TableField(exist = false)
    private String statusRemark;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "签署日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date contractTime;

    @ApiModelProperty(value = "合同编号")
    private String contractOrder;

    @ApiModelProperty(value = "合同地址")
    private String url;

    @ApiModelProperty(value = "合同名称")
    private String name;

    @ApiModelProperty(value = "合同类型(0--债权转让框架协议,1--资金合法声明,2-委托代收付协议)")
    private String type;

    @ApiModelProperty(value = "合同类型(0--债权转让框架协议,1--资金合法声明,2-委托代收付协议)")
    @TableField(exist = false)
    private String typeRemark;

    @ApiModelProperty(value = "合同预览链接")
    private String previewUrl;

    @ApiModelProperty(value = "合同签署链接")
    private String signUrl;


}
